package com.jarvan.repository;

import com.jarvan.model.Admin;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface AdminRepository extends JpaRepository<Admin, Integer> {
    Admin findByLoginName(String loginName);
    Admin findByPhone(String phone);
    Page<Admin> findAllByAdminStatus(Integer adminStatus, Pageable pageable);
}
